<form id="processos" class="form-cadastro form-horizontal form-view" method="post">

  <fieldset>
    <!-- Grupo -->
    <div class="control-group">
      <label class="control-label" for="grupo">Grupo</label>
      <div class="controls">
        <?php foreach ($usuario->grupo as $grupo) { ?>
          <span class="label label-inverse"><?php echo $grupo ?></span>
        <?php } ?>
      </div>
    </div>

    <hr/>

    <div class="pull-left">
      <!-- CPF -->
      <div class="control-group">
        <label class="control-label">CPF</label>
        <div class="controls">
          <span class="view-data"><?php echo cpf_format($usuario->login) ?></span>
        </div>
      </div>

      <!-- Nome -->
      <div class="control-group">
        <label class="control-label">Nome</label>
        <div class="controls">
          <input class="view-data input-xlarge" value="<?php echo $usuario->nome ?>" />
        </div>
      </div>

      <!-- E-mail -->
      <div class="control-group">
        <label class="control-label">E-mail</label>
        <div class="controls">
          <input class="view-data span12" value="<?php echo $usuario->email ?>" />
        </div>
      </div>

      <!-- Senha -->
      <div class="control-group">
        <label class="control-label">Senha</label>
        <div class="controls">
          <button id="modal-password" class="btn" type="button">Alterar senha</button>
        </div>
      </div>
    </div>

    <!-- Foto -->
    <div class="fileupload fileupload-new pull-right" data-provides="fileupload">
      <div class="fileupload-new thumbnail">
        <img src="<?php echo base_url('assets/img/usuarios/no-photo.jpg') ?>" />
      </div>
      <div class="fileupload-preview fileupload-exists thumbnail"></div>
      <div>
        <span class="btn btn-file">
          <span class="fileupload-new">Selecione a imagem</span>
          <span class="fileupload-exists">Alterar</span>
          <input type="file" />
        </span>
        <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remover</a>
      </div>
    </div>

    <?php if (in_array("Advogados", $usuario->grupo)) { ?>
      <div class="clearfix"></div>
      <hr />

      <!-- Título -->
      <div class="control-group">
        <label class="control-label" for="titulo">Título</label>
        <div class="controls">
          <input class="view-data input-large typeahead" value="<?php echo $usuario->titulo ?>" data-provide="typeahead" autocomplete="off" />
        </div>
      </div>

      <!-- OAB -->
      <div class="control-group">
        <label class="control-label" for="oab">OAB</label>
        <div class="controls">
          <input class="view-data input-large" value="<?php echo $usuario->oab ?>" />
        </div>
      </div>

      <!-- Informações -->
      <div class="control-group">
        <label class="control-label" for="informacoes">Informações</label>
        <div class="controls">
          <ul class="list-check">
            <?php if ($usuario->info) {
              foreach ($usuario->info as $info) { ?>
                <li>
                  <span class="view-data"><?php echo $info ?></span>
                  <a href="#" class="remove btn-mini text-error">Remover</a>
                </li>
              <?php }
            } ?>
            <li>
              <input class="view-data" type="text" />
              <a href="#" class="add btn-mini text-error">Adicionar</a>
            </li>
          </ul>
        </div>
      </div>

      <!-- Produções -->
      <div class="control-group">
        <label class="control-label" for="producoes">Produções</label>
        <div class="controls">
          <ul class="list-check">
            <?php if ($usuario->producoes) {
              foreach ($usuario->producoes as $producoes) { ?>
                <li>
                  <div class="row-fluid">
                    <span class="view-data "><?php echo $producoes ?></span>
                  </div>
                </li>
              <?php }
            } ?>
            <li>
              <textarea class="view-data input-block-level"></textarea>
              <a href="#" class="add btn btn-mini btn-link text-error">Adicionar</a>
            </li>
          </ul>
        </div>
      </div>
    <?php } ?>
  </fieldset>

  <!-- Form actions -->
  <div class="form-actions">
    <button id="salvar" class="btn btn-large btn-inverse pull-right" type="submit">Salvar</button>
  </div>
</form>